<template>
  <div class="dashboard-container">
    <el-carousel :interval="4000" type="card" height="400px">
      <el-carousel-item v-for="item in 6" :key="item">
        <el-image :src="bg"></el-image>
      </el-carousel-item>
    </el-carousel>
    <div class="dashboard-text">欢迎登录基于vue+node框架的学生管理系统</div>
  </div>
</template>

<script>

export default {
  name: 'Dashboard',
  data() {
    return {
      bg: require('@/assets/bg.png')
    }
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
    .dashboard-text {
      width: 100%;
      text-align: center;
    }
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
